import 'package:flutter/material.dart';
import 'package:hook_rent/widgets/app_colors.dart';
import 'package:hook_rent/widgets/text_widgets.dart';

AppBar buildAppBar({String title = ''}) {
  return AppBar(
    centerTitle: true,
    elevation: 0,
    bottom: PreferredSize(
      preferredSize: const Size.fromHeight(1), //设置底部线的高度
      child: Container(
        color: Colors.grey.withOpacity(0.3), // 底部线
        height: 1,
      ),
    ),
    title: text16Normal(text: title, color: AppColors.primaryElementText), //标题
  );
}
